package com.nari.common.core.constant;

/**
 * 通用常量信息
 * 
 * @author nari
 */
public class Constants
{
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 成功标记
     */
    public static final Integer SUCCESS = 200;

    /**
     * 失败标记
     */
    public static final Integer FAIL = 500;

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 注册
     */
    public static final String REGISTER = "Register";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";

    /**
     * 排序列
     */
    public static final String ORDER_BY_COLUMN = "orderByColumn";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static final String IS_ASC = "isAsc";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 验证码有效期（分钟）
     */
    public static final long CAPTCHA_EXPIRATION = 2;

    /**
     * 令牌有效期（分钟）
     */
    public final static long TOKEN_EXPIRE = 720;

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";
    /**
     * 请求税务标识
     */
    public final static Integer ErrCode = 0;
    /**
     * contentcontrol中控制标志
     */
    public static final String USED = "Y";
    /**
     * 税务接口版本号
     */
    public static final String INTERFACE_VERSION = "1.0.0";
    /**
     * 税务接口地址
     */
    public static final String WSDL_URL = "http://218.57.142.39:8080/yscextsService/services/extsService";
    /**
     * 日志成功状态
     */
    public static final String RTS_LOG_SUCCESS = "1";
    /**
     * 日志失败状态
     */
    public static final String RTS_LOG_FAIL = "2";
    /**
     * 请求成功状态
     */
    public static final String RTS_REQUEST_SUCCESS = "00";
    /**
     * 请求失败状态
     */
    public static final String RTS_REQUEST_FAIL = "02";
    /**
     * 请求处理中状态
     */
    public static final String RTS_REQUEST_DEALING = "01";
    /**
     * 是否签名认证
     */
    public static final String ENCRYPT_USED = "N";
    /**
     * 是否压缩
     */
    public static final String COMPRESS_USED = "N";

}
